![]() |
Sensor Fusion for Kinetis MCUs (ISSDK/KSDK version)
|
Collaboration diagram for PhysicalSensor:Data Fields | |
| void * | bus_driver |
| uint16_t | addr |
| uint16_t | isInitialized |
| spiSlaveSpecificParams_t | slaveParams |
| struct PhysicalSensor * | next |
| uint16_t | schedule |
| initializeSensor_t * | initialize |
| readSensor_t * | read |
These structures sit 'on-top-of' the pre-7.0 sensor fusion structures and give us the ability to do run time driver installation.
Definition at line 170 of file sensor_fusion.h.
| uint16_t addr |
I2C address if applicable.
Definition at line 172 of file sensor_fusion.h.
Referenced by FXLS8471Q_Idle(), FXLS8471Q_Init(), FXLS8471Q_Read(), FXOS8700_Idle(), FXOS8700_Init(), FXOS8700_ReadMagData(), installSensor(), MAG3110_Idle(), MAG3110_Init(), and MAG3110_Read().
| void* bus_driver |
should be of type (ARM_DRIVER_I2C* for I2C-based sensors, ARM_DRIVER_SPI* for SPI)
Definition at line 171 of file sensor_fusion.h.
Referenced by FXLS8471Q_Idle(), FXLS8471Q_Init(), FXLS8471Q_Read(), FXOS8700_Idle(), FXOS8700_Init(), FXOS8700_ReadMagData(), installSensor(), MAG3110_Idle(), MAG3110_Init(), and MAG3110_Read().
| initializeSensor_t* initialize |
pointer to function to initialize sensor using the supplied drivers
Definition at line 177 of file sensor_fusion.h.
Referenced by initializeSensors(), and installSensor().
| uint16_t isInitialized |
Bitfields to indicate sensor is active (use SensorBitFields from build.h)
Definition at line 173 of file sensor_fusion.h.
Referenced by FXLS8471Q_Idle(), FXLS8471Q_Init(), FXLS8471Q_Read(), FXOS8700_Idle(), FXOS8700_Init(), FXOS8700_ReadMagData(), MAG3110_Idle(), MAG3110_Init(), MAG3110_Read(), and readSensors().
| struct PhysicalSensor* next |
pointer to next sensor in this linked list
Definition at line 175 of file sensor_fusion.h.
Referenced by initializeSensors(), installSensor(), and readSensors().
| readSensor_t* read |
pointer to function to read sensor using the supplied drivers
Definition at line 178 of file sensor_fusion.h.
Referenced by installSensor(), and readSensors().
| uint16_t schedule |
Parameter to control sensor sampling rate.
Definition at line 176 of file sensor_fusion.h.
Referenced by installSensor(), and readSensors().
| spiSlaveSpecificParams_t slaveParams |
SPI specific parameters. Not used for I2C.
Definition at line 174 of file sensor_fusion.h.
Referenced by FXLS8471Q_Idle(), FXLS8471Q_Init(), FXLS8471Q_Read(), and installSensor().